package com.xfatm.util.typecase;

import java.math.BigDecimal;

public class ToBigDecimalTypeCase {

    public class ObjectToBigDecimal implements TypeCase{
        @Override
        public BigDecimal typeCase(Object o) {
            if(o==null){
                return null;
            }
            return new BigDecimal(o.toString());
        }
    }
}
